
export const option = {
  height: 'auto',
  calcHeight: 80,
  searchShow: true,
  searchMenuSpan: 6,
  tip: false,
  tree: true,
  border: true,
  menuWidth: 300,
  align: 'center',
  column: [
    {
      label: "部门名称",
      prop: "name",
      rules: [{
        required: true,
        message: "请输入部门名称",
        trigger: "blur"
      }]
    },
    {
      width: 150,
      label: '租户',
      prop: 'tenantId',
      type: "select",
      dicUrl: "/admin/tenant/list",
      props: {
        label: "name",
        value: "id"
      },
      rules: [{
        required: true,
        message: '租户不能为空',
        trigger: 'blur'
      }
      ]
    },
    {
      label: "上级部门",
      prop: "parentId",
      dicData: [],
      type: "tree",
      hide: true,
      props: {
        label: "name",
        value: "id"
      },
      rules: [{
        required: false,
        message: "请选择上级部门",
        trigger: "click"
      }]
    },	  {
      label: '联系人',
      prop: 'linkman',
      hide: false,
      type: 'input',
    },	  {
      label: '联系电话',
      prop: 'contact',
      hide: false,
      type: 'input',
    },	  {
      label: '联系地址',
      prop: 'address',
      hide: false,
      type: 'input',
    },	  {
      label: '修改时间',
      prop: 'updateTime',
      addDisplay: false,
      editDisplay: false,
      type: 'datetime',
      width: 120,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    },
    {
      label: "排序",
      prop: "sort",
      type: "number",
      hide:true,
      rules: [{
        required: true,
        message: "请输入排序",
        trigger: "blur"
      }]
    }
  ]
}
